

import request from '@/utils/system/request'

// 获取基础数据
export function notifyList(data: object) {
    return request({
        url: '/admin/notify/notify_list',
        method: 'post',
        baseURL: '/api',
        data
    })
}
export function notifyColumnList(data: object) {
    return request({
        url: '/admin/notify/notify_column_list',
        method: 'post',
        baseURL: '/api',
        data
    })
}
export function addNotify(data: object) {
    return request({
        url: '/admin/notify/add_notify',
        method: 'post',
        baseURL: '/api',
        data
    })
}
export function deleteNotify(data: object) {
    return request({
        url: '/admin/notify/delete_notify',
        method: 'post',
        baseURL: '/api',
        data
    })
}
export function notifyDetail(data: object) {
    return request({
        url: '/admin/notify/notify_detail',
        method: 'post',
        baseURL: '/api',
        data
    })
}
export function modifyNotify(data: object) {
    return request({
        url: '/admin/notify/modify_notify',
        method: 'post',
        baseURL: '/api',
        data
    })
}

export function sendGlobal(data: object) {
    return request({
        url: '/admin/message/send_global',
        method: 'post',
        baseURL: '/api',
        data
    })
}
export function sendProject(data: object) {
    return request({
        url: '/admin/message/send_project',
        method: 'post',
        baseURL: '/api',
        data
    })
}
export function getByDictType(data: object) {
    return request({
        url: '/admin/dict/get_by_dict_code',
        method: 'post',
        baseURL: '/api',
        data
    })
}
export function updateByDictCode(data: object) {
    return request({
        url: '/admin/dict/update_by_dict_code',
        method: 'post',
        baseURL: '/api',
        data
    })
}

export function addNotifyColumn(data: object) {
    return request({
        url: '/admin/notify/add_notify_column',
        method: 'post',
        baseURL: '/api',
        data
    })
}
export function delNotifyColumn(data: object) {
    return request({
        url: '/admin/notify/del_notify_column',
        method: 'post',
        baseURL: '/api',
        data
    })
}

